/*仅仅展示页面，不涉及node数据渲染的路由部分*/
const Controller = require('egg').Controller;

class showRouter extends Controller {
   /* app下载*/
    async downApp() {
        await this.ctx.render('page/other/downApp.html');
    }
   /* 登录模块*/
    async login() {
        await this.ctx.render('page/login/login.html');
    }
    async loginBycode() {
        await this.ctx.render('page/login/loginBycode.html');
    }
    async register() {
        await this.ctx.render('page/login/register.html');
    }
    async forgotPassword() {
        await this.ctx.render('page/login/forgotPas.html');
    }
    async loginweixin() {
        await this.ctx.render('page/login/loginweixin.html');
    }
    async loginQQ() {
        await this.ctx.render('page/login/loginQQ.html');
    }
    async bindOldAccount() {
        await this.ctx.render('page/login/bindOldAccount.html');
    }
    async bindOldAccountToweixin() {
        await this.ctx.render('page/login/bindOldAccountToweixin.html');
    }
    /* 用户模块*/
    async userInfo() {
        await this.ctx.render('page/user/userInfo.html');
    }
    async userCenter() {
        await this.ctx.render('page/user/userCenter.html');
    }
    async userCart() {
        await this.ctx.render('page/user/userCart.html');
    }
    async userAddress() {
        await this.ctx.render('page/user/userAddress.html');
    }
    async userSubmitOrder() {
        await this.ctx.render('page/user/userSubmitOrder.html');
    }
    async userCharge() {
        await this.ctx.render('page/user/userCharge.html');
    }
    async userWithdraw() {
        await this.ctx.render('page/user/userWithdraw.html');
    }
    /*其他*/
    async sendGift() {
        await this.ctx.render('page/other/sendGift.html');
    }
    async buyVip() {
        await this.ctx.render('page/other/buyVip.html');
    }
    /*达人招募*/
    async recruitDaren() {
        await this.ctx.render('page/other/recruitDaren.html');
    }
    
    /*选地址买书*/
    async sureBuyBook() {
        await this.ctx.render('page/other/sureBuyBook.html');
    }
    /*选地址买书*/
    async contactUs() {
        await this.ctx.render('page/other/contactUs.html');
    }
    /*pdf预览*/
    async pdfview() {
        await this.ctx.render('page/other/pdfview.html');
    }
}

module.exports = showRouter;


